package com.smartleanx.module.hrm.dal.mysql.examine.examineAssessmentScope;

import java.util.*;

import com.smartleanx.framework.common.pojo.PageResult;
import com.smartleanx.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.smartleanx.framework.mybatis.core.mapper.BaseMapperX;
import com.smartleanx.module.hrm.dal.dataobject.examine.examineAssessmentScope.ExamineAssessmentScopeDO;
import org.apache.ibatis.annotations.Mapper;
import com.smartleanx.module.hrm.controller.admin.examine.examineAssessmentScope.vo.*;

/**
 * 考核范围 Mapper
 *
 * @author 
 */
@Mapper
public interface ExamineAssessmentScopeMapper extends BaseMapperX<ExamineAssessmentScopeDO> {

    default PageResult<ExamineAssessmentScopeDO> selectPage(ExamineAssessmentScopePageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<ExamineAssessmentScopeDO>()
                .eqIfPresent(ExamineAssessmentScopeDO::getExamineId, reqVO.getExamineId())
                .orderByDesc(ExamineAssessmentScopeDO::getId));
    }

}